package com.oracle.sbdb.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class ConfigurationUtil {
	public static List<String> getLines(String path) {
		List<String> res = new ArrayList<String>();
		try{
			InputStream is = ConfigurationUtil.class.getClassLoader().getResourceAsStream(path);
			InputStreamReader isr = new InputStreamReader(is);
			BufferedReader br = new BufferedReader(isr);
			String line = null;
			while((line = br.readLine()) != null){
				res.add(line);
			}
			br.close();
		}catch(IOException e){
			e.printStackTrace();
		}
		return res;
	}
}
